<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>邮件群发</title>
	<link rel="stylesheet" href="<?=adminassets?>assets/pear/component/pear/css/pear.css" />
</head>
<body class="pear-container">
    <?php if ($my == "list") : ?>
    <div class="layui-card">
    	<div class="layui-card-body">
    		<table id="user-table" lay-filter="user-table"></table>
    	</div>
    </div>
    <script type="text/html" id="user-toolbar">
    	<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="add">
    		<i class="layui-icon layui-icon-add-1"></i>
    		新建群发
    	</button>
    	<button class="pear-btn pear-btn-danger pear-btn-md" lay-event="allRemove">
			<i class="layui-icon layui-icon-delete"></i>
			一键删除
		</button>
    </script>
    <script type="text/html" id="options">
    	<button class="pear-btn pear-btn-danger pear-btn-sm" lay-event="remove"><i class="layui-icon layui-icon-delete"></i></button>
    </script>
    <?php endif;?>
    <?php if ($my == "add") : ?>
    <form class="layui-form" action="">
        <div class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">用户类型</label>
                <div class="layui-input-block">
                    <select name="user_type" id="user_type" lay-filter="userTypeSelect">
                        <option value="">请选择用户类型</option>
                        <option value="1">全平台用户</option>
                        <option value="2">非平台用户</option>
                    </select>
                </div>
            </div>
            <div id="xf_email1" style="display: none;">
                <div class="layui-form-item">
                    <label class="layui-form-label">收件邮箱</label>
                    <div class="layui-input-block">
                        <textarea name="mail_email" placeholder="请输入收件邮箱，多个邮箱请用英文逗号隔开" class="layui-textarea"></textarea>
                    </div>
                </div>
            </div>
            <div class="layui-form-item" >
                <label class="layui-form-label">邮件标题</label>
                <div class="layui-input-block">
                    <input type="text" name="mail_title"  placeholder="请输入邮件标题" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮件内容</label>
                <div class="layui-input-block">
                    <textarea name="mail_content"  placeholder="请输入邮件内容 不支持html内容" class="layui-textarea"></textarea>
                </div>
            </div>
             
            <div class="bottom">
				<div class="button-container">
				    <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm"  lay-submit="" lay-filter="addSave">
						<i class="layui-icon layui-icon-ok"></i>
						发信
					</button>
					<button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
						<i class="layui-icon layui-icon-refresh"></i>
						重置
					</button>
				</div>
			</div>
        </div>
    </form>
    <?php endif;?>
<script src="<?=adminassets?>assets/pear/component/layui/layui.js"></script>
<script src="<?=adminassets?>assets/pear/component/pear/pear.js"></script>
<script type="text/javascript" src="../Core/assets/js/jquery.min.js"></script>
<script src="<?=adminassets?>assets/js/core_js/qunemail.js"></script>